<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

/*Route::get('/', function () {
    return view('welcome');
});*/


Route::group(['middleware'=>['mylimit','throttle:10,1']],function (){
    Route::get('/', function () {
        return view('welcome');
    });

});

// Route::group(['namespace' => 'index'],function(){
//     Route::get('index','IndexController@index')->name('index');
// });


    Route::get('index','TmplController@index')->name('index');
    Route::get('cate','TmplController@cate')->name('cate');
    Route::get('datail','TmplController@datail')->name('datail');

    Route::get('user','UserController@req')->name('user/req');
    Route::post('user','UserController@reqSave')->name('user/req');